package com.uestc.qiniu;

/**
 * 存储七牛云存储的配置
 * 
 * @author justyoung
 *
 */
public class QNConfig {
	public static String ACCESS_KEY;
	public static String SECRET_KEY;
	public static String BUCKET;
	public static String UPLOAD_CALLBACK_URL;
	public static String UPLOAD_CALLBACK_HOST;
	public static String UPLOAD_CALLBACK_BODY;
	public static String HTTP_DOMAIN_NAME;

	static {
		init();
	}

	private static void init() {
		ACCESS_KEY = "Lh5EkAwJII4SlMCh6bSVrd9I5b0LfM6avLC6Odjc";
		SECRET_KEY = "d6ZftZgFh0-alfh0_qv2Po7imqxeTJma5VcXTaGZ";
		BUCKET = "privacycloudtest";
		UPLOAD_CALLBACK_URL = "http://222.211.86.164/CloudStorageServer/qiniu/callback";
		HTTP_DOMAIN_NAME = "http://7xlu5h.com1.z0.glb.clouddn.com";
	}

	/**
	 * 重新加载配置
	 */
	public static void reload() {
		init();
	}
}
